home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / lang / fortran / toolpack.000 / toolpack / toolpack1.2 / C / globals2.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-03-04  |  1.2 KB  |  47 lines

  1. /*-------------------------------*/
  2. /*   TOOLPACK/1   Release: 1.1   */
  3. /*-------------------------------*/
  4.  
  5.  
  6.     /* define structure of type FDINFO */
  7. struct fdinfo {
  8.     char *bufp;    /* pointer to current buffer position */
  9.  
  10.     int chrleft;  /* number of characters positions free in buffer */
  11.  
  12.     int ftype;        /* file type : sequential, direct or unknown
  13.                unless file has been specifically opened during
  14.                execution this will always be unknown */
  15.  
  16.     int access;    /* access allowed read, write or readwrite */
  17.  
  18.     int caccess;    /* current mode of access - may change
  19.                    if readwrite enabled */
  20.  
  21.     char filenam[MAXPATH];    /* C string version of filename */
  22.  
  23.     char buffer[BLOCKSIZE];     /* buffer for buffered i/o */
  24.  
  25.     int count;    /* number of spaces left to getch from embedded
  26.                space block */
  27.     };
  28.  
  29. struct filinfo {
  30.     int ftype1;
  31.     int subtype;
  32.     int exists;
  33. };
  34.  
  35. struct fdinfo files[MAXFILE];
  36. char root[MAXPATH], lcldir[MAXPATH];
  37. char *inparam[MAXPRAM+3], *outparm[MAXPRAM+3];
  38. char nxttool[MAXPATH];
  39. int statswd;
  40. int ipcexst, ipcfile[MAXPATH];
  41.  
  42. /* opnrec0 allows zbopen and zbcret to access record zero of a direct
  43.    access file (opnrec0 = 1) at all other times (opnrec0 = 0) this
  44.    record is locked out */
  45.  
  46. int opnrec0 ;
  47.